Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Hans Hagen via ntg-context
ppapersize [label] [A4] \setuplayout [page] \setuppaper [nx=3, ny=10, dx=1mm, dy=1mm] \setuplayout [horoffset=50mm, veroffset=10mm] \setuparranging [XY] \setupbackgrounds [page] [frame=on] \starttext \dorecurse{56} {\startpagemakeup \midalign

Re: [NTG-context] Math alignment question

2022-09-24 Thread Jeong Dal via ntg-context
as may be different because formula’s alignment is midaligned. Thanks again to add it todo list. Best regards, Dalyoung___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
\setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}] \starttext \switchtobodyfont[18pt] \definehspace[hspacing][0.15em] О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\ \switchto

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
[][\midaligned{\userpagenumber/\lastuserpage}] \starttext \switchtobodyfont[18pt] \definehspace[hspacing][0.15em] О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\ \switchtobodyfont[9pt

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Bruce Horrocks via ntg-context
t 'chapter' >> titles do? >> >> % ---begin--- >> \define[2]\placePartTitle{\midaligned{#2}} >> >> \definehead [Part] [part] >> \setuphead[Part] >> [ placehead=yes, >> style={\tfd}, >> command=\placePartTitle, >> ] > > \setuphead > [

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Aditya Mahajan via ntg-context
f > the page. > > > > If it were a 'chapter' title then I could insert '\\' to cause a line break > at that point. However this does not seem to work for 'part'. > > > > Is there a way of making 'part' titles wrap the same way that 'chapter' > titles do? > > > >

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Wolfgang Schuster via ntg-context
break at that point. However this does not seem to work for 'part'. Is there a way of making 'part' titles wrap the same way that 'chapter' titles do? % ---begin--- \define[2]\placePartTitle{\midaligned{#2}} \definehead [Part] [part] \setuphead[Part] [ placehead=yes, style={\tfd

[NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Bruce Horrocks via ntg-context
'. Is there a way of making 'part' titles wrap the same way that 'chapter' titles do? % ---begin--- \define[2]\placePartTitle{\midaligned{#2}} \definehead [Part] [part] \setuphead[Part] [ placehead=yes, style={\tfd}, command=\placePartTitle, ] \starttext \startPart[title={A very long

Re: [NTG-context] \installpagearrangement doublesided stickers

2022-02-11 Thread Jigé via ntg-context
\fi} \definepapersize[Vignette][width=80.0mm,height=50.0mm] \setuppapersize [Vignette][A4] \setuparranging [2*5*double*2*5] \setuplayout [margin=0pt, location=middle, marking=on] \showframe \starttext \dorecurse{20}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} \stoptext My aim

Re: [NTG-context] \installpagearrangement doublesided stickers

2022-01-22 Thread Willi Egger via ntg-context
gt; marking=on, > margin=0mm, > topspace=0mm, > backspace=0mm, > width=fit, > %header=0mm, > %footer=0mm, > %align=middle, > ] > > \showframe > %\setuppagenumbering[state=stop] > \setuppagenumbering[alternative=doublesided] > > \starttext > \do

[NTG-context] \installpagearrangement doublesided stickers

2022-01-16 Thread Jigé via ntg-context
{20}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
{\doifsomething{\rawstructurelistuservariable{author}} > {{\it\structurelistuservariable{author}} --\crlf}% > #1% > \doifsomething{\rawstructurelistuservariable{subtitle}} > {\crlf\structurelistuservariable{subtitle}}} > > \setuphead >

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Wolfgang Schuster via ntg-context
[section] \blank \midaligned{\it\structureuservariable{author}} \blank \stopsetups \setuphead [subject] [align=flushleft, style=\bfb] \definenote[someothername] \setupnote [someothername] [rule=off] \setupnotation [someothername] [numberconversion=set 2] \setupnotation

[NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
title}}} \setuphead[section][ after=\setup{section}, align=center, number=no, style=\bold ] \startsetups section \blank \midaligned{\it \structureuservariable{author}} \blank \stopsetups %\foonote{\structureuservariable{affiliation}} %only "thanks" seems to work. \definenote[t

[NTG-context] \thanks inside author in section

2021-12-29 Thread Youssef Cherem via ntg-context
ructurelistuservariable{subtitle}}} \setuphead[section][ after=\setup{section}, align=center, number=no, style=\bold ] \startsetups section \blank \midaligned{\it \structureuservariable{author}} \blank\stopsetups %\foonote{\structureuservariable{affiliation}} \definenote[thanks]%[n

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
,2mm) withpen pensquare scaled 1.5mm ; > draw (0,0)--(TextWidth,0) withpen pensquare scaled 1.0mm ; >clip currentpicture to unitsquare yscaled 1cm xscaled TextWidth > \stopMPcode > \stopsetups > > \define[2]\placePartTitle{\midaligned{#2}} > %% The above line is w

Re: [NTG-context] A book with sections

2021-10-23 Thread Bruce Horrocks via ntg-context
Double rule above part title \startsetups PartSetup \setupheader[state=empty] \par \startMPcode draw (0,2mm)--(TextWidth,2mm) withpen pensquare scaled 1.5mm ; draw (0,0)--(TextWidth,0) withpen pensquare scaled 1.0mm ; clip currentpicture to unitsquare yscaled 1cm xscaled TextWidth \stop

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } try \startalignment[middle] ... \stopalignment instead of \midaligned My problem is that at the moment, the four authors

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread Hans Hagen
) with the other two below(also centred). Here is my MWE for the essential bit (which is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } try \startalignment[middle] ... \stopalignment instead of \midaligned My problem is that at the moment, the four

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
Thank you. Ci siamo quasi, ma non del tutto! Nearly there! The \midaligned{... } was obviously preventing the \crlf in the \startchapter from working. Removing it altogether allowed the split to occur but obviously not centred. So i have tried now adding the \startalignment[middle

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread mf
for the essential bit (which is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } try \startalignment[middle

[NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } My problem is that at the moment, the four authors appear on a single line

[NTG-context] Filler rules

2020-10-14 Thread Willi Egger
not to work in this way. What am I missing? kind regards Willi \definefiller [Titlerule] [alternative=rule, left=\hfil, right=\hfil, method=local, width=50mm, height=2pt, leftmargin=1pt, rightmargin=1pt, align=middle] \starttext \midaligned{Some text} \filler[Titlerule

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
figure[frontpage-logo.png][width=12cm]} % Place course titles\blank[6*big]\color[Modu_Blue]{\midaligned{\bfc \MyManual}} \blank[4*big]\color[Modu_Blue]{\midaligned{\tfc \MyTitle}} \blank[2*big]\color[Modu_Blue]{\midaligned{\tfc \MySubtitleOne}} \blank[2*big]\color[Modu_Blue]{\midaligned{\tfc \MySubti

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
[frontpage-logo.png][width=12cm]} % Place course titles \blank[6*big] \color[Modu_Blue]{\midaligned{\bfc \MyManual}} \blank[4*big] \color[Modu_Blue]{\midaligned{\tfc \MyTitle}} \blank[2*big] \color[Modu_Blue]{\midaligned{\tfc \MySubtitleOne}} \blank[2*big] \color[Modu_Blue]{\midaligned{\tfc

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
\startcomponent currentcomponent \product product % Front page layout\startstandardmakeup % Place logo centered on page \framed[height=5cm,width=broad,frame=off] {\externalfigure[frontpage-logo.png][width=12cm]} % Place course titles\blank[6*big]\color[Modu_Blue]{\midaligned{\bfc \MyManual

Re: [NTG-context] Chapter heading with rules

2020-08-21 Thread Otared Kavian
]\myChapterCommand{% \midaligned{{\filler[ChapterLeftRule]}#1.~#2{\filler[ChapterRightRule]}} } \setuphead[chapter] [textstyle={\setcharactercasing[WORD]\ssa}, command=\myChapterCommand] \starttext \startchapter[title={My Chapter Title}] \input knuth.tex \stopchapter

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread jbf
middle and right alignment. \define[2]\MemoirChapter {\midaligned{\startoverlay {#1} {#2} \stopoverlay}} Julian On 17/8/20 4:54 pm, Aditya Mahajan wrote: On Mon, 17 Aug 2020, jbf wrote: Am completely new to using Metafun, which I presume I would need to use to achieve

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread Otared Kavian
an, since at least it seems to work > (am including just the definition part of your example), So at least I can > get middle and right alignment. > > \define[2]\MemoirChapter > {\midaligned{\startoverlay > {#1} > {#2} > \stopoverlay}} > > Julian

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
I meant to include an example of what I mean, since at least it seems to work (am including just the definition part of your example), So at least I can get middle and right alignment. \define[2]\MemoirChapter  {\midaligned{\startoverlay   {#1}   {#2}     \stopoverlay}} Julian On 17

Re: [NTG-context] (no subject)

2020-06-17 Thread Taco Hoekwater
fi} > > \setuppapersize [A10][A8] > \setuparranging [1*4*reversed] > \setuplayout[margin=0pt, width=fit] > > \showframe > > \starttext > \dorecurse{8}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} > \stoptext > ``` > > imposition scheme i

[NTG-context] (no subject)

2020-06-17 Thread Malte Frank Gerdes
{#1}000\arrangedpageA % 4 \poparrangedpages \fi} \setuppapersize [A10][A8] \setuparranging [1*4*reversed] \setuplayout[margin=0pt, width=fit] \showframe \starttext \dorecurse{8}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} \stoptext ``` imposition scheme

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Wolfgang Schuster
{ward} \blank \midaligned{\subpagenumber} \stopTEXpage \startTEXpage \samplefile{ward} \blank \midaligned{\subpagenumber} \stopTEXpage \stoptext Wolfgang ___ If your question is of interest

[NTG-context] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-21 Thread Rudolf Bahr
in:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games The .tiff-image is always too big for this forums upper limit \starttext \midaligned{ \externalfigure[image-no-red-frame.png][width=15mm,height=25mm] \hskip12pt \externalfigure[imagered-frame.png][width=15mm,height=25mm] \hskip12pt \externalfigur

Re: [NTG-context] two different outputs.

2019-01-01 Thread Wolfgang Schuster
the inner effect appears two times. I have two more questions. 1. I’d like to put a title only in a page using the following. How to put a title as center aligned? \setuphead[title][align=middle] % \page[yes] \dontleavehmode\blank[5cm] \title{Why, Math?} \blank[big] \midaligned{\fancy Why do

Re: [NTG-context] two different outputs.

2019-01-01 Thread Jeong Dal
questions. 1. I’d like to put a title only in a page using the following. How to put a title as center aligned? % \page[yes] \dontleavehmode\blank[5cm] \title{Why, Math?} \blank[big] \midaligned{\fancy Why do we learn mathematics?} \vfill \midaligned{\tfb Institution} \blank[2cm] \page

Re: [NTG-context] Completecontent has problems with chapter, in table

2018-12-03 Thread Wolfgang Schuster
{\structureuservariable{image}}{\midaligned{\externalfigure[\structureuservariable{image}]}\endgraf} \headsetupspacing \setbox\scratchbox\hbox{\headnumbercontent} \hangindent\dimexpr\wd\scratchbox+\headnumberdistance\relax \noindent \box\scratchbox\hskip\headnumberdistance

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
l] \startstandardmakeup \midaligned{\CruxFramed{\ssd OpenStack}} \vfil \stopstandardmakeup \stopBG \startfrontmatter \setuplayout[reset] \setuppagenumbering[conversion=romannumerals] \setuppagenumber[number=1] \completecontent %\completelistoffigures %\completelistof

Re: [NTG-context] vertical alignment of images in Natural Table

2017-10-28 Thread Wolfgang Schuster
dth=.5\textwidth,height=.5\textheight] \bTR \bTD 7·3 apples are on a tree. Anne picks 4·3 apples. \blank[.5em] How many apples remain on the tree? \vfilll \midaligned{\externalfigure[apple]} \vfilll \eTD \eTR \

Re: [NTG-context] Bug in startcombination

2017-08-14 Thread Hans Hagen
ion} [………] Here is the example: %%% begin bug-combination.tex \setupcolors[state=start] \useMPlibrary[dum] \starttext This is our first picture. \placefigure[none]{}{\externalfigure[dummy][width=6cm]} \blank This is a combination of 3 figures on two lines \placefigure[none]{} { \midalig

[NTG-context] Bug in startcombination

2017-08-14 Thread Otared Kavian
bug-combination.tex \setupcolors[state=start] \useMPlibrary[dum] \starttext This is our first picture. \placefigure[none]{}{\externalfigure[dummy][width=6cm]} \blank This is a combination of 3 figures on two lines \placefigure[none]{} { \midaligned{ \startcombination[

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
tion={right,bottom}] {\getmarking[chapternumber]} \globaldisablemode[chapterpage] } { \setlayer [chapter] [x=\dimexpr\backspace+\textwidth+\rightmargindistance\relax, y=3in, location={right,bottom}] {\doifright

Re: [NTG-context] typesetting serial letters in Context

2017-06-15 Thread r . ermers
ut of the nodes. The main problem is to use them > in a layout and in a sequences other the one they appear in the xml data file. > > In the current (mkii) file I have something like this: > \midaligned{\XMLflush{formalname}, \XMLflush{informalname}}. > > > Another point on my

Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread r . ermers
I can take the information out of the nodes. The main problem is to use them in a layout and in a sequences other the one they appear in the xml data file. In the current (mkii) file I have something like this: \midaligned{\XMLflush{formalname}, \XMLflush{informalname}}. Another point on my

Re: [NTG-context] problem with align in natural tables

2017-05-15 Thread Alan Bowen
Thanks, Wolfgang! Will do. Alan On Mon, May 15, 2017 at 1:18 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Put the table in a float or use \midaligned. > > \starttext > > \startmiddlealigned > \bTABLE > \bTR\bTD Sun \eTD\bTD

Re: [NTG-context] problem with align in natural tables

2017-05-15 Thread Wolfgang Schuster
Put the table in a float or use \midaligned. \starttext \startmiddlealigned \bTABLE \bTR\bTD Sun \eTD\bTD Aries\eTD\eTR \eTABLE \stopmiddlealigned \startplacetable[location=none] \bTABLE \bTR\bTD Sun \eTD\bTD Aries\eTD\eTR \eTABLE \stopplacetable \stoptext Wolfgang

[NTG-context] Chapter-head: number, title and subtitle

2017-01-25 Thread Robert Blackstone
to the requirements of an external publisher. One of the items is the content and layout of the chapter-heads. What would be needed as a chapter-head, of Chapter 1 for instance, is, on two or, occasionally three, lines: - Chapter 1 (midaligned, boldface, smallish size (\tfa)) - some vertical space

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
he above may be abstracted into three categories: > > \startitemize[packed] >\item >Exists, but unknown ({\bf missing value}) >\startformula > \exists x\,\hbox{Yalta}(\hbox{Winston},x,\hbox{Churchill}) >\stopformula >\item >Nonexistent, not a

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
{Winston},\hbox{Churchill}) \stopformula \item Not known to exist ({\bf no-information null}) \startformula \hbox{Yalta}_{-2}(\hbox{Winston},\hbox{Churchill}) \stopformula \stopitemize \midaligned{\tfxx \starttable[|l|l|l|] \NC \THREE Yalta \cite[Atzeni:1993] \NC

[NTG-context] Chapter-subtitle and a short version of a( long) chapter title to fit in the header

2017-01-10 Thread Robert Blackstone
Dear all, Presently I’m restyling a PhD-dissertation to make it conform to the requirements of an external publisher. One of the items is the form of the chapter-heads. What would be needed on the first page of a chapter, Chapter 1 for instance, is: - Chapter 1 (midaligned, boldface

Re: [NTG-context] How to define section with midaligned number and midaligned text?

2016-08-09 Thread Lukáš Procházka
... How easy! Thank you. Lukas On Tue, 09 Aug 2016 22:50:05 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Lukáš Procházka <mailto:l...@pontex.cz> 9. August 2016 um 22:43 Hello, I need to produce a \section with midaligned number and midaligned text bellow the

Re: [NTG-context] How to define section with midaligned number and midaligned text?

2016-08-09 Thread Wolfgang Schuster
Lukáš Procházka <mailto:l...@pontex.cz> 9. August 2016 um 22:43 Hello, I need to produce a \section with midaligned number and midaligned text bellow the number, like: |<- text width -->| " I. Section Bla bla ... " I tried

[NTG-context] How to define section with midaligned number and midaligned text?

2016-08-09 Thread Lukáš Procházka
Hello, I need to produce a \section with midaligned number and midaligned text bellow the number, like: |<- text width -->| " I. Section Bla bla ... " I tried this: \define[2]\Sec{\midaligned{#1.}\midaligned{#2}} \s

[NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Bou Salim
olor{myred}; \stopuseMPgraphic \midaligned{\useMPgraphic{test}} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.

Re: [NTG-context] A rather special case of a chapter-start

2016-06-05 Thread Willi Egger
=no] \midaligned{\bf TEXT before chapter title} \startchapter[title=test] \input knuth \stopchapter \stop \startchapter[title=Normal chapter start] \input knuth \stopchapter \stoptext Thanks for looking

Re: [NTG-context] Bug: RTL \framed when aligned

2016-01-21 Thread Hans Hagen
On 1/20/2016 4:27 PM, Mohammad Hossein Bateni wrote: Hello, There seems to be a bug in RTL documents when \framed goes in \leftaligned, \midaligned, or \rightaligned AND corner=round option is used. (I don't know what other options trigger the bug.) Here is the MWE (verified in ConTeXt ver

[NTG-context] Bug: RTL \framed when aligned

2016-01-20 Thread Mohammad Hossein Bateni
Hello, There seems to be a bug in RTL documents when \framed goes in \leftaligned, \midaligned, or \rightaligned AND corner=round option is used. (I don't know what other options trigger the bug.) Here is the MWE (verified in ConTeXt ver: 2016.01.18 22:21 MKIV beta fmt: 2016.1.19 int: english

[NTG-context] tooltip and buttom for footnotes?

2016-01-14 Thread Ursula Hermann
Hello Wolfgang or Hans? Can one of you help me please. Iwant something like this: \setuppapersize[S6][S6] \setupinteraction[state=start] \setupcolors[state=start] \starttext Here is an example: by saying \type{\tooltip[left]{Example}{Is it nice}}, we get \blank \midaligned

[NTG-context] Two column layout with footnotes do not work as expected

2015-10-23 Thread Dr. Thomas Möbius
: On the first page, footnotes run into each other. On the second page, footnote runs into text. \setuppapersize[A5][A5] \setupbodyfont[10pt] \definestartstop[abstract] [before={\blank\midaligned{\bf Abstract}\startnarrower[2*middle]}, after={\stopnarrower\blank[big]}] \definecolumnset[TwoColumns

[NTG-context] \setupwhitespace and Natural Table paragraphs

2015-08-17 Thread Pavneet Arora
] \setupinterlinespace[3.8ex] \starttext \input ward \input ward \midaligned{% \setupTABLE[frame=off]% \setupTABLE[offset=1em]% \setupTABLE[r][each][topframe=on,bottomframe=on]% \setupTABLE[c][1][align={flushleft,high},width=1.5in]% \setupTABLE[c][2][align={flushleft,lohi},width=4.0in]% \bTABLE

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Wolfgang Schuster
when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. I think I can reduce the number of places where spaces have to be suppressed. With just 2 \removeunwantedspaces and 1 \ignorespaces I get rid of most

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
When typesetting inside a \midaligned a version with markers around: A\startembeddedxtable\xmlflush{#1}\stopembeddedxtable B then the A and B show up centered and have the width of the table material between them. The embeddedxtable stuff is placed outside that range starting at the location

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
Further experimenting with different ConTeXt versions: Trying earlier and latest beta, placing the embeddedxtable inside \midaligned: version 2014.11.26 puts the embbedxtable to the right over distance width-of-table. version 2015.03.25 and version 2015.05.23 put the left side

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
ConTeXt versions: Trying earlier and latest beta, placing the embeddedxtable inside \midaligned: version 2014.11.26 puts the embbedxtable to the right over distance width-of-table. version 2015.03.25 and version 2015.05.23 put the left side of the embeddedxtable in the middle of the page

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
Hans van der Meer On 24 May 2015, at 13:49, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: Further experimenting with different ConTeXt versions: Trying earlier and latest beta, placing the embeddedxtable inside \midaligned: version 2014.11.26 puts the embbedxtable

[NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
With the construct \startembeddedxtable\xmlflush{#1}\stopembeddedxtable placed inside a \midaligned I used to get a neatly centered content. But now the material is shifted to the right, even sticking out of the page. Has something changed in the embeddedxtable alignment handling since

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Meer, H. van der
/td/tr trtdD/td/tr /tbody /table /root \stopbuffer \midaligned{\xmlprocessbuffer{root}{the-table}{}} \blank The equalsign (=) is added to \type{\startxmlsetups xmlcommon:tr} in order to show the spurious whitespace injected. \stoptext

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Wolfgang Schuster
to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. \startxmlsetups

Re: [NTG-context] Having difficulty getting unicode characters to display in ConTeXT out put PDF

2015-04-08 Thread Henning Hraban Ramm
] \placebookmarks[section][force=yes] % Let us say hello in many languages \starttext \setupfooter [state=start] \page[1] \startfrontmatter {\midaligned {\tfc{\WORD{Hello World \placecontent[extras={22=page},alternative=c] \stopfrontmatter \page[yes

Re: [NTG-context] Having difficulty getting unicode characters to display in ConTeXT output PDF

2015-04-08 Thread Pablo Rodriguez
\setupfooter [state=start] \page[1] \startfrontmatter {\midaligned {\tfc{\WORD{Hello World \placecontent[extras={22=page},alternative=c] \stopfrontmatter \page[yes] \startbodymatter \section{1. Russian: Привет мир!} Russian: Привет мир! \\ \section

Re: [NTG-context] slanting an intermezzo.

2015-03-26 Thread Otared Kavian
Hi John, Maybe playing with something like what follows will help: begin tilted-framed.tex \starttext \placeintermezzo[right,none]{} \rotate[rotation=-10]{\startframedtext[width=3in] \midaligned{\bf RECIPE FOR SUCCESS} \par \noindent

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
\blank[4mm] Contact info: {\sl i...@enterprisechess.com}\crlf Web site: {\sl http://enterprisechess.com}\crlf Suggested hashtag: {\sl \#eachess} \stop \stopstandardmakeup \startstandardmakeup[doublesided=no] \start \switchtobodyfont[16pt] \midaligned{The world is not {\blackboard Q}, it is {\blackboard R

Re: [NTG-context] Error with \prevdepth

2015-01-26 Thread Kip Warner
On Mon, 2015-01-26 at 11:07 +0100, Hans Hagen pra...@wxs.nl wrote: remeve the placefigure in that line, so : \midaligned {\externalfigure [Makeup/Images/Cartesian_Theatre.svg] [width=0.25\textwidth]} a midaligned is a hbox while a placefigure operates in the mvl Thanks

Re: [NTG-context] Error with \prevdepth

2015-01-26 Thread Hans Hagen
with the following error: tex errorerror on line 32 in file Handbook/Handbook.tex: ! You can't use `\prevdepth' in restricted horizontal mode Any help appreciated. remeve the placefigure in that line, so : \midaligned {\externalfigure [Makeup/Images

Re: [NTG-context] Error with \prevdepth

2015-01-26 Thread Hans Hagen
On 1/26/2015 7:26 PM, Kip Warner wrote: On Mon, 2015-01-26 at 11:07 +0100, Hans Hagen pra...@wxs.nl wrote: remeve the placefigure in that line, so : \midaligned {\externalfigure [Makeup/Images/Cartesian_Theatre.svg] [width=0.25\textwidth]} a midaligned is a hbox while

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Wolfgang Schuster
] \widthspanningtext{text}{.5\textwidth}{Serif} \stopalign \hfill\widthspanningtext{text}{.5\textwidth}{Serif} \stoptext Am I missing something or is \hfill the only way to align the contents from \widthspanningtext? Use \midaligned{\WidthSpanningText

[NTG-context] Trying to force a particular page sequence

2014-11-26 Thread Gerben Wierda
\hairline\stop \rightaligned{2014}% \stopstandardmakeup \stop Copyright notice (should be lower left on first lefthand side page) \page[yes] \start \switchtobodyfont[16pt] ~%otherwise \blank does nothing \blank[6cm] \midaligned{Statement, centered first righthand side page} \stop \startfrontmatter

Re: [NTG-context] Trying to force a particular page sequence

2014-11-26 Thread Gerben Wierda
(should be lower left on first lefthand side page) \page[yes] \start \switchtobodyfont[16pt] ~%otherwise \blank does nothing \blank[6cm] \midaligned{Statement, centered first righthand side page} \stop \startfrontmatter

Re: [NTG-context] pgfplots broken?

2014-11-05 Thread luigi scarso
[state=start] \usemodule[tikz] \usemodule[pgfplots] \starttext \midaligned{% \starttikzpicture \startaxis[ xmin=-3, xmax=3, ymin=-3, ymax=3, extra x ticks={-1,1}, extra y ticks={-2,2}, extra tick style={grid=major}, ] \draw[red] \pgfextra{ \pgfpathellipse{\pgfplotspointaxisxy{0}{0

Re: [NTG-context] pgfplots broken?

2014-11-04 Thread Akira Kakuto
Dear Mikael, An example from PGFPlots Gallery. Please try if it works. Here on windows, it seems to work. Attached files are tt.log.txt and tt.pdf. Best, Akira % % tt.tex: from PGFPlots Gallery % \setupcolors[state=start] \usemodule[tikz] \usemodule[pgfplots] \starttext \midaligned

[NTG-context] Placement of a figure

2014-09-02 Thread Fabrice Couvreur
Hi, In this code, the figure is placed on the base line. How to make the numbering at the top of the figure ? \starttext \startitemize[n][stopper=),style=bf] \item \midaligned{\externalfigure[figure1_reperage.pdf]} \startitemize[a][stopper=),style=bf] \item Donner les coordonnées des points

Re: [NTG-context] Placement of a figure

2014-09-02 Thread Wolfgang Schuster
Am 02.09.2014 um 12:43 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi, In this code, the figure is placed on the base line. How to make the numbering at the top of the figure ? \starttext \startitemize[n][stopper=),style=bf] \item \midaligned{\externalfigure

[NTG-context] Framed text and page breaks

2014-09-02 Thread Keith McKay
: \definepapersize[book][width=5.06in,height=7.81in] \setuppapersize [book][] \setuplayout [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] \starttext \dorecurse{2}{\input ward \blank} \midaligned \framed[frame=off,width=5cm,align={width

Re: [NTG-context] Framed text and page breaks

2014-09-02 Thread Aditya Mahajan
shows these effects: \definepapersize[book][width=5.06in,height=7.81in] \setuppapersize [book][] \setuplayout [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] \starttext \dorecurse{2}{\input ward \blank} \midaligned \framed[frame=off,width=5cm

Re: [NTG-context] Framed text and page breaks

2014-09-02 Thread Keith McKay
,height=7.81in] \setuppapersize [book][] \setuplayout [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] \starttext \dorecurse{2}{\input ward \blank} \midaligned \framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before

[NTG-context] Footnote with midaligned text

2014-09-01 Thread Francisco Gracia
As the following example shows, just trying to add a footnote to a midaligned sentence is not that easy: either the footnote index is (dis)placed to the right margin or the footnote body does not show at its proper place (at the end of the page). Is there a way to make both things fit? Regards

Re: [NTG-context] Footnote with midaligned text

2014-09-01 Thread Wolfgang Schuster
Am 01.09.2014 um 09:04 schrieb Francisco Gracia fgragu...@gmail.com: As the following example shows, just trying to add a footnote to a midaligned sentence is not that easy: either the footnote index is (dis)placed to the right margin or the footnote body does not show at its proper place

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-27 Thread Joshua Krämer
}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox}% \fi} \hbox} \definefloat [widefigure] [figure] [figure] \setupfloat [widefigure] [command=\WideFloatCommand] \usemodule[tikz] \showframe \starttext x \page \startplacewidefigure \framed[width=\measure

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-27 Thread Joshua Krämer
] {Five}; \stoptikzpicture} \stopplacewidefigure \startplacewidefigure \midaligned{% \starttikzpicture \node [draw, minimum width=3cm] {Six}; \stoptikzpicture} \stopplacewidefigure \stoptext ___ If your question

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Hans Hagen
+\rightmargindistance+\rightmarginwidth] \setupfloat[figure][command=\FigureCommand] \define\FigureCommand {\dowithnextbox {\signalrightpage \ifdim\nextboxwd\textwidth \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}% \else \midaligned

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Rik Kabel
+\rightmarginwidth] \setupfloat[figure][command=\FigureCommand] \define\FigureCommand {\dowithnextbox {\signalrightpage \ifdim\nextboxwd\textwidth \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox}% \fi

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Hans Hagen
\midaligned{\flushnextbox}% \fi} \hbox} \showframe \starttext \startplacefigure \framed[width=.8\textwidth,framecolor=red]{Left margin} \stopplacefigure \page \startplacefigure \framed[width=\measure{Widefigure},framecolor=red]{Left margin} \stopplacefigure \input knuth \page

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-24 Thread Wolfgang Schuster
+\rightmarginwidth] \setupfloat[figure][command=\FigureCommand] \define\FigureCommand {\dowithnextbox {\signalrightpage \ifdim\nextboxwd\textwidth \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox}% \fi

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-24 Thread Keith J. Schultz
+\rightmarginwidth] \setupfloat[figure][command=\FigureCommand] \define\FigureCommand {\dowithnextbox {\signalrightpage \ifdim\nextboxwd\textwidth \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-24 Thread Joshua Krämer
\nextboxwd\textwidth \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox}% \fi} \hbox} \showframe \starttext \startplacefigure[location={270, page}] \framed[width=\textheight,framecolor=red]{Turned

Re: [NTG-context] Centering tabulate env. using \setuptabulate

2014-05-28 Thread Robert Zydenbos
not use the full width of the paper (b) it is a long table, crossing a page end (c) the whole table should be centered I tried the source below and obviously made a mistake somewhere. Any suggestions? Robert Test source: \starttext \input knuth \setuptabulate[split=yes] \midaligned

Re: [NTG-context] Centering tabulate env. using \setuptabulate

2014-05-28 Thread Hans Hagen
width ... pretty hard to do otherwise Robert Test source: \starttext \input knuth \setuptabulate[split=yes] \midaligned { %%% -- THIS DOES NOT WORK -- it does not center the entire table \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|] \dorecurse{4}{ \NC Nu laat ik je iets zien in een

  1   2   3   4   5   >